package com.pentakill.mo.feedback.feedback.business.ebo;

import java.io.Serializable;
import java.util.List;

import com.pentakill.mo.feedback.feedback.business.ebi.FeedbackEbi;
import com.pentakill.mo.feedback.feedback.dao.dao.FeedbackDao;
import com.pentakill.mo.feedback.feedback.vo.FeedbackModel;
import com.pentakill.mo.util.base.BaseQueryModel;
import com.pentakill.mo.util.exception.AppException;

public class FeedbackEbo implements FeedbackEbi{

	//注入feedback的feedbackImpl
	private FeedbackDao feedbackDao;
	
	
	public void setFeedbackDao(FeedbackDao feedbackDao) {
		this.feedbackDao = feedbackDao;
	}

	public void save(FeedbackModel fm) {
		if (fm != null) {
			fm.setCreateDate(System.currentTimeMillis());
			feedbackDao.add(fm);
		}else {
			throw new AppException("格式不正确");
		}
	}

	public List<FeedbackModel> getAll() {
		return feedbackDao.getAll();
	}

	public FeedbackModel get(Serializable uuid) {
		// TODO Auto-generated method stub
		return null;
	}

	public void update(FeedbackModel t) {
		// TODO Auto-generated method stub
		
	}

	public void delete(FeedbackModel t) {
		// TODO Auto-generated method stub
		
	}

	public List<FeedbackModel> getAll(BaseQueryModel dqm, Integer pageNum, Integer pageCount) {
		// TODO Auto-generated method stub
		return null;
	}

	public Integer getCount(BaseQueryModel dqm) {
		// TODO Auto-generated method stub
		return null;
	}

}
